<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.Info"%>
<%@page import="util.PageManager"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0028)http://csir461.com/index.jsp -->
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<TITLE>机票预订网站</TITLE>
<LINK rel=stylesheet type=text/css href="npticketsys_files/css.css">


<STYLE type=text/css>
.STYLE1 {
	COLOR: #d77745
}
</STYLE>

<META name=GENERATOR content="MSHTML 8.00.6001.19222">
</HEAD>
<BODY>

	<%
if(Info.getUser(request)==null){
 %>
	<script type="text/javascript">
 alert("请先登录");
 window.location.replace("index.jsp");
 </script>
	<%} %>

	<LINK rel=stylesheet type=text/css href="npticketsys_files/css.css">
	<STYLE type=text/css>
BODY {
	MARGIN: 0px
}

BODY {
	FONT-FAMILY: 宋体
}

TD {
	FONT-FAMILY: 宋体
}

TH {
	FONT-FAMILY: 宋体
}
</STYLE>



	<TABLE class=bk border=0 cellSpacing=0 cellPadding=0 width=950
		align=center>
		<TBODY>
			<TR>
				<TD vAlign=top>

					<LINK rel=stylesheet type=text/css href="npticketsys_files/css.css">



					<jsp:include page="top.jsp"></jsp:include> <%
                  CommDAO dao = new CommDAO();
                  HashMap umap = Info.getUser(request);
                  if(request.getParameter("f")!=null)
                  {
                  dao.commOper("insert into taolun values(null,'"+request.getParameter("message")+"','"+umap.get("uname")+"','"+Info.getDateStr()+"','-1')");
                  }
                  
                   %>














					<TABLE border=0 cellSpacing=0 cellPadding=0 width=925 align=center>
						<TBODY>
							<TR>
								<TD vAlign=top>
									<TABLE class=mt border=0 cellSpacing=0 cellPadding=0 width=925>
										<TBODY>
											<TR>
												<TD vAlign=top width=693>
													<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%"
														align=left>
														<TBODY>
															<TR>
																<TD vAlign=top align=middle>

																	<form action="/npticketsys/zxjl.jsp?f=f" name="f1"
																		method="post">




																		<TABLE border=0 cellSpacing=0 cellPadding=0
																			width="96%">
																			<TBODY>
																				<TR>
																					<TD>
																						<TABLE border=0 cellSpacing=0 cellPadding=0
																							width="100%" align=left>
																							<TBODY>
																								<TR>
																									<TD height=24
																										background=npticketsys_files/112bg.gif
																										width=320 align=left>
																										<TABLE border=0 cellSpacing=0 cellPadding=0
																											width=200 align=left>
																											<TBODY>
																												<TR>
																													<TD width=8 align=left>&nbsp;</TD>
																													<TD class=ls height=24 vAlign=bottom
																														width=174 align=left><STRONG>在线交流</STRONG></TD>


																													<%
                                if(request.getParameter("me")!=null)
                                {
                                String content = request.getParameter("content");
                                dao.commOper("insert into messages values(null,'"+umap.get("uname")+"','"+content+"','"+Info.getDateStr()+"','"+request.getParameter("zyuname")+"')");
                                }
                                 %>

																												</TR>
																											</TBODY>
																										</TABLE>


																									</TD>
																								</TR>
																							</TBODY>
																						</TABLE>
																					</TD>
																				</TR>
																				<TR>
																					<TD>
																						<TABLE class=mt border=0 cellSpacing=0
																							cellPadding=0 width="100%">
																							<TBODY>
																								<TR>
																									<TD align=left vAlign=top>
																										<TABLE border=0 cellSpacing=0 cellPadding=0
																											width="100%">
																											<TBODY>

																												<%
                                 ArrayList<HashMap> list = PageManager.getPages("zxjl.jsp?1=1",5, "select * from taolun where 1=1 order by id desc", request ); 
                                 for(HashMap m:list){
                                 HashMap map = new CommDAO().select("select * from sysuser where uname='"+m.get("saver")+"'").get(0);
                                  %>
																												<TR>
																													<TD width="14%" rowspan="2" align=center
																														vAlign=center class=xh><img
																														src="upfile/<%=map.get("filename") %>"
																														height="45" /></TD>
																													<TD width="86%" height="30" align=left
																														vAlign=center class=xh><a
																														href="txiang.jsp?id=<%=m.get("id") %>"><%=m.get("saver")+" : "+m.get("message")+"("+m.get("savetime")+")" %>
																													</a></TD>
																												</TR>
																												<TR>
																													<TD height="30" align=left vAlign=center
																														class=xh><font color=gray>管理员回复
																															: <%=m.get("pid") %></font></TD>
																												</TR>
																												<%} %>



																												<TR>
																													<TD height=30 colspan="3" align=center
																														vAlign=center>${page.info }</TD>
																												</TR>


																												<TR>
																													<TD height=98 colspan="3" align=center
																														vAlign=center class=xh><label>
																															<textarea name="message" id="message"
																																cols="45" rows="3"></textarea> <br />
																														<br /> <input type="submit" value="发表帖子" />



																													</label></TD>
																												</TR>
																											</TBODY>
																										</TABLE>
																									</TD>
																								</TR>
																							</TBODY>
																						</TABLE>
																					</TD>
																				</TR>
																			</TBODY>
																		</TABLE>





																	</form>
																</TD>
															</TR>
														</TBODY>
													</TABLE>
												</TD>





												<jsp:include page="left.jsp"></jsp:include>






											</TR>
										</TBODY>
									</TABLE>
								</TD>
							</TR>
						</TBODY>
					</TABLE>
					<TABLE border=0 cellSpacing=0 cellPadding=0 width=950>
						<TBODY>
							<TR>
								<TD>&nbsp;</TD>
							</TR>
						</TBODY>
					</TABLE>
				</TD>
			</TR>
		</TBODY>
	</TABLE>




	<jsp:include page="foot.jsp"></jsp:include>



</BODY>
</HTML>
<script language="javascript">
<%
if(request.getAttribute("error")!=null){
%>
alert("用户名已存在");
<%}%>
<%
if(request.getAttribute("suc")!=null){
%>
alert("添加成功");
<%}%>
</script>
<SCRIPT language=javascript src="/npticketsys/js/popups.js"></SCRIPT>